package cn.hengzhu.main_manager.utils;

import cn.hengzhu.main_manager.repository.domain.AccessRecord;

public class SavaSourceToRecordSource {
	
	
	public  static AccessRecord savaSourceToRecordSource(Byte source){
		AccessRecord accessRecord = new AccessRecord();
		if (Byte.valueOf("2").equals(source)) {
			accessRecord.setSource((byte) 3);
		} else if (Byte.valueOf("3").equals(source)) {
			accessRecord.setSource((byte) 4);
		} else if (Byte.valueOf("1").equals(source)) {
			accessRecord.setSource((byte) 2);
		} else if (Byte.valueOf("4").equals(source)) {
			accessRecord.setSource((byte) 5);
		} else if (Byte.valueOf("5").equals(source)) {
			accessRecord.setSource((byte) 6);
		}
		return accessRecord;
		
	}

}
